//
//  LZQuickLoginButton.m
//  百思不得姐
//
//  Created by 郝庆 on 16/5/13.
//  Copyright © 2016年 haoqing. All rights reserved.
//

#import "LZQuickLoginButton.h"

@implementation LZQuickLoginButton

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setUp];
    }
    return self;
}

- (void)awakeFromNib
{
    [self setUp];
}

- (void)setUp
{
    self.titleLabel.textAlignment = NSTextAlignmentCenter;
}

/**
 *  自定义快速登录按钮
 */
- (void)layoutSubviews
{
    [super layoutSubviews];

    self.imageView.lz_centerX = self.lz_width * 0.5;
    self.imageView.lz_y = 0;
    
    self.titleLabel.lz_x = 0;
    self.titleLabel.lz_y = self.imageView.lz_height;
    self.titleLabel.lz_width = self.lz_width;
    self.titleLabel.lz_height = self.lz_height - self.imageView.lz_height;
}

@end
